<template>
    <div>
        <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item @click.native="routerWelcome" class="oneBox">首页</el-breadcrumb-item>
            <el-breadcrumb-item>{{obj.onename}}</el-breadcrumb-item>
            <el-breadcrumb-item>{{obj.twoname}}</el-breadcrumb-item>
        </el-breadcrumb>
    </div>
</template>

<script>
import store from '@/store/index'
import { mapMutations } from 'vuex'
export default {
  data(){
    return{
        obj:store.state.mixinsState||{}
    }
  },
  methods:{
    ...mapMutations(['mixinsAdd']),
    routerWelcome(){
      console.log(111);
      // this.$router.push('/welcome')
      location.href='/welcome'
      this.mixinsAdd({})
    }
  }
}
</script>

<style>
.oneBox{
  font-weight: 900;
}
</style>